use "/Users/sokolins/Dropbox/Ideas/PortfolioManagersSalariesUpdated/JFQA Replication Package May 2025/Code/rep_data", clear

************************************************
***Baseline REGRESSIONS WITH FIRM-YEAR FE

//All vars
local manager_vars "l_skill l_visibility l_revenue l_manager_age l_fund_exp extra_role l_nfunds equity"
local team_vars "l_team_fund_exp l_team_size l_team_manager_age team_equity_share"



//salary growth

local y "del_salary"

qui reghdfe `y' vis_high_first     `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon replace ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  
  
qui reghdfe `y' vis_high_first vis_high_second    `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  

qui reghdfe `y' vis_high_first vis_high_second vis_high_third `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  
//role promotion

local y "role_prom"

qui reghdfe `y' vis_high_first     `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  
  
qui reghdfe `y' vis_high_first vis_high_second    `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  

qui reghdfe `y' vis_high_first vis_high_second  vis_high_third  `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  
  
//fund promotion

local y "fund_prom"

qui reghdfe `y' vis_high_first     `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  
  
qui reghdfe `y' vis_high_first vis_high_second    `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  

qui reghdfe `y' vis_high_first vis_high_second  vis_high_third  `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep ( vis_high_first vis_high_second vis_high_third )  ///
  
  



seeout using "results.txt"
*********************************************

